#!/bin/bash
export BASE_DIR=`cd $(dirname $0); pwd`
cd $BASE_DIR
expot JAVA_HOME=./jdk
export JAVA_OPTS="-Xms256m -Xmx256m -Xmn256m -Xss256k";
for file in $(ls *.jar)
do
  nohup $JAVA_HOME/bin/java $JAVA_OPTS -jar $file > /dev/null 2>&1 &
  echo "$file started with options: $JAVA_OPTS"
done
